{include file=member.header.html}
<script type="text/javascript">
$(function(){
	$('.ratyItem').each(function(){
		
		var iconId = $(this).find('.ratyIcon').attr('id');
		var targetId = $(this).find('.ratyTarget').attr('id');
		var scoreName = $(this).attr('scoreName');
		
		$('#'+iconId).raty({
			score: 5,
            target : '#'+targetId,
			targetType: 'hint',
			scoreName: scoreName
       });
	   
	})
})
</script>
<div id="page-buyer-order">
	<div class="page-body">
		<form method="POST" id="evaluation">
			<!--{foreach from=$goods_list item=goods name=fe_goods}-->
			<div class="order-goods">
				<div class="list clearfix">
					<div class="pic float-left"><img class="block" src="{$goods.goods_image}" width="50" height="50"  /></div>
					<div class="text float-left"> {if !$group_id}<a href="{url app=goods&id=$goods.goods_id}">
						<h3>
						{else} <a target="_blank" href="{url app=groupbuy&id=$group_id}">
						<h3><strong>[{$lang.groupbuy}] </strong>{/if}{$goods.goods_name|escape}</h3>
						<span>{$goods.specification|escape}</span> </a> </div>
					<div class="pri float-right"> {$goods.price|price} x {$goods.quantity} </div>
				</div>
				<div class="comment-box">
					<h4 class="mt10 fs14">{$lang.total_evaluation}</h4>
					<div class="radio-box pt10 pb10"> <b>
						<label for="g{$goods.rec_id}_op1">
							<input id="g{$goods.rec_id}_op1" type="radio" name="evaluations[{$goods.rec_id}][evaluation]" value="3" checked  />
							<span>{$lang.evaluation_good}</span></label>
						</b> <b>
						<label for="g{$goods.rec_id}_op2">
							<input id="g{$goods.rec_id}_op2" type="radio" name="evaluations[{$goods.rec_id}][evaluation]" value="2" />
							<span>{$lang.evaluation_acceptable}</span></label>
						</b> <b>
						<label for="g{$goods.rec_id}_op3">
							<input id="g{$goods.rec_id}_op3" type="radio" name="evaluations[{$goods.rec_id}][evaluation]" value="1" />
							<span>{$lang.evaluation_bad}</span></label>
						</b> </div>
					<div class="textarea">
						<textarea name="evaluations[{$goods.rec_id}][comment]"></textarea>
					</div>
				</div>
				<div class="fill_in">
					<h4 class="mt10 mb10 fs14">{$lang.store_evaluation}</h4>
					<ul class="raty pb10">
                       <li class="mb10 w-full clearfix ratyItem"  scoreName="evaluations[{$goods.rec_id}][goods_evaluation]"> <span  class="float-left mr10 t">{$lang.goods_evaluation}：</span> <span id="gIcon{$smarty.foreach.fe_goods.iteration}" class="float-left mr10 ratyIcon"></span> <span id="gTarget{$smarty.foreach.fe_goods.iteration}" class="float-left ratyTarget hint"></span>
                       </li>
                       <li class="mb10 w-full clearfix ratyItem"  scoreName="evaluations[{$goods.rec_id}][service_evaluation]"> <span class="float-left mr10 t">{$lang.service_evaluation}：</span> <span id="svIcon{$smarty.foreach.fe_goods.iteration}" class="float-left mr10 ratyIcon"></span> <span id="svTarget{$smarty.foreach.fe_goods.iteration}" class="float-left ratyTarget  hint"></span>
                       </li>
                       <li class="mb10 w-full clearfix ratyItem"  scoreName="evaluations[{$goods.rec_id}][shipped_evaluation]"> <span class="float-left mr10 t">{$lang.shipped_evaluation}：</span> <span id="shIcon{$smarty.foreach.fe_goods.iteration}" class="float-left mr10 ratyIcon"></span> <span id="shTarget{$smarty.foreach.fe_goods.iteration}" class="float-left ratyTarget  hint" ></span>
                      </li>
                   </ul>  
				</div>
			</div>
			<!--{/foreach}-->
			<div class="padding10 clearfix">
				<div class="float-left" style="width:49%;">
					<input type="submit" class="btn-alipay" value="{$lang.submit}" />
				</div>
				<div class="float-right" style="width:49%;">
					<input type="button" onclick="window.location.href='{url app=buyer_order}'" class="btn-alipay btn-alipay-gray" value="{$lang.evaluate_later}" />
				</div>
			</div>
		</form>
	</div>
</div>
{include file=footer.html} 